Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: [DHIS2-15782] navigation with program stage filter #3431

Merged
merged 5 commits into from
Oct 16, 2023

Conversation

simonadomnisoru
Copy link
Contributor

@simonadomnisoru simonadomnisoru commented Oct 4, 2023

DHIS2-15782

Tech summary
Ensure that the hook is only fired when navigating from the search page to the main page with a different WL selected. I added checks for:

  • selectedTemplateId !== currentTemplateId- check if a different working list has been selected by comparing selectedTemplateId (the value of the URL parameter) with currentTemplateId (which comes from redux store workingListsTemplates.selectedTemplateId)
  • !viewPreloaded - used to discard the case when currentTemplateId is a uuid() while saving a new WL

@github-actions
Copy link

github-actions bot commented Oct 4, 2023

@simonadomnisoru simonadomnisoru marked this pull request as ready for review October 5, 2023 13:17
@simonadomnisoru simonadomnisoru requested a review from a team as a code owner October 5, 2023 13:17
Copy link
Contributor

@eirikhaugstulen eirikhaugstulen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link

@geethaalwan geethaalwan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested successfully on 2.41,2.40.2,2.39.4 versions

@simonadomnisoru simonadomnisoru merged commit 8f7a017 into master Oct 16, 2023
33 of 37 checks passed
@simonadomnisoru simonadomnisoru deleted the DHIS2-15782 branch October 16, 2023 14:17
dhis2-bot added a commit that referenced this pull request Oct 16, 2023
## [100.41.3](v100.41.2...v100.41.3) (2023-10-16)

### Bug Fixes

* [DHIS2-15782] navigation with program stage filter ([#3431](#3431)) ([8f7a017](8f7a017))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 100.41.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

superskip pushed a commit that referenced this pull request Oct 27, 2023
## [100.41.3](v100.41.2...v100.41.3) (2023-10-16)

### Bug Fixes

* [DHIS2-15782] navigation with program stage filter ([#3431](#3431)) ([8f7a017](8f7a017))
simonadomnisoru pushed a commit that referenced this pull request Nov 8, 2023
## [100.41.3](v100.41.2...v100.41.3) (2023-10-16)

### Bug Fixes

* [DHIS2-15782] navigation with program stage filter ([#3431](#3431)) ([8f7a017](8f7a017))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants